<template>
  <div>
     <a href="https://www.baidu.com" @click="goto">百度一下</a>

     <a href="https://www.jingdong.com" @click="goto2(9,$event)">京东一下</a> 
  </div>
</template>

<script>
export default {
methods: {
    goto(e){
        console.log(e);
        e.preventDefault()
    },
    goto2(n,e){
        console.log(e);
        e.preventDefault()
    }
}
}
</script>

<style>

</style>